<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_stylesheets() ?>
	<?php use_javascript('jquery-1.7.2.js') ?>
	<?php use_javascript('search.js') ?>
    <?php include_javascripts() ?>
  </head>
  <body>
	<div id="container">
		
			<div id="header">
				<div id="logo">
				
				</div>
			
				<div class="search">									
					<form action="<?php echo url_for('user_search') ?>" method="get">
						<input type="text" name="query" value="<?php echo $sf_request->getParameter('query') ?>" id="search_keywords" />
						<input type="submit" value="search" />
						<img id="loader" src="../images/loader.gif" style="vertical-align: middle; display: none" />
					</form>
				</div>	

				<div id="menu">
					<a class="menuLink" href="<?php echo url_for('homepage') ?>">Home</a> |
					<a class="menuLink" href="<?php echo url_for('user/index') ?>">Players</a> |
					<a class="menuLink" href="<?php echo url_for('war/index') ?>">Wars</a> |
					<a class="menuLink" href="<?php echo url_for('performance/index') ?>">Last stats</a> |
					<a class="menuLink" href="<?php echo url_for('clan/index') ?>">Clans</a>								
				</div>
			
			</div>
		
			<div id="content">
				<?php if ($sf_user->hasFlash('notice')): ?>
					<div class="flash_notice">
						<?php echo $sf_user->getFlash('notice') ?>
					</div>
				<?php endif ?>
 
				<?php if ($sf_user->hasFlash('error')): ?>
					<div class="flash_error">
						<?php echo $sf_user->getFlash('error') ?>
					</div>
				<?php endif ?>
			
				<div id="content_body">
					<?php echo $sf_content ?>
				</div>
			</div>
		
			<div id="footer">

				<span class="footerContent">Gamerstats.pl @ Autor: Krzysztof Korc @ 03.2012</span>
			</div>
		
	</div>
  </body>
</html>